<?php
namespace app\api\model;
use think\Model;

class User extends Model{
    protected $table = 'lt_manager';
    protected $type = [
        'id'    =>  'integer',     
    ];
    //多表关联
    public function access(){
        return $this->hasOne('role','id','role_id');
    } 
}